package com.nation.domain;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;
import java.sql.Date;

/**
 * Created by dqd on 2017/11/4.
 */
@Entity
@Table(name = "V_international_and_relationship", schema = "show_nation", catalog = "")
public class VInternationalAndRelationship implements Serializable {
    private int id;
    private String country_code;
    private String diplomatic_cpolicy;
    private String foreign_relation;
    private String big_power_relation_asia;
    private String big_power_relation_europe;
    private String big_power_relation_africa;
    private String big_power_relation_oceania;
    private String big_power_relation_america;
    private String big_power_relation_china;
    private String relation_international_organization;
    private String international_agreement;
    private String refrence;
    private String statistics;
    private String conferences;
    private String picture;
    private String recoder_id;
    private String recoder_time;
    private String nation_z;

    public VInternationalAndRelationship(){}
    public VInternationalAndRelationship(String statistics, String conferences, String diplomatic_cpolicy, String foreign_relation
            ,String big_power_relation_asia, String big_power_relation_europe
            , String big_power_relation_africa, String refrence, String country_code
            , String big_power_relation_oceania, String big_power_relation_america
            , String big_power_relation_china,String relation_international_organization
            ,String international_agreement){
        this.statistics = statistics;
        this. conferences= conferences;
        this.diplomatic_cpolicy = diplomatic_cpolicy;
        this.foreign_relation = foreign_relation;
        this.big_power_relation_asia = big_power_relation_asia;

        this.big_power_relation_europe =big_power_relation_europe ;
        this.big_power_relation_africa =big_power_relation_africa ;
        this.refrence = refrence;
        this.country_code =country_code ;
        this.big_power_relation_oceania = big_power_relation_oceania;

        this. big_power_relation_america= big_power_relation_america;
        this.big_power_relation_china = big_power_relation_china;
        this. relation_international_organization= relation_international_organization;
        this.international_agreement =international_agreement ;
    }

    private String continent;

    public String getContinent() {
        return continent;
    }

    public void setContinent(String continent) {
        this.continent = continent;
    }
    @Basic
    @Column(name = "id", nullable = false)
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    @Basic
    @Column(name = "country_code", nullable = false, length = 4)
    public String getCountry_code() {
        return country_code;
    }

    public void setCountry_code(String country_code) {
        this.country_code = country_code;
    }

    @Basic
    @Column(name = "diplomatic_cpolicy", nullable = true, length = 255)
    public String getDiplomatic_cpolicy() {
        return diplomatic_cpolicy;
    }

    public void setDiplomatic_cpolicy(String diplomatic_cpolicy) {
        this.diplomatic_cpolicy = diplomatic_cpolicy;
    }

    @Basic
    @Column(name = "foreign_relation", nullable = true, length = 255)
    public String getForeign_relation() {
        return foreign_relation;
    }

    public void setForeign_relation(String foreign_relation) {
        this.foreign_relation = foreign_relation;
    }

    @Basic
    @Column(name = "big_power_relation_asia", nullable = true, length = 255)
    public String getBig_power_relation_asia() {
        return big_power_relation_asia;
    }

    public void setBig_power_relation_asia(String big_power_relation_asia) {
        this.big_power_relation_asia = big_power_relation_asia;
    }

    @Basic
    @Column(name = "big_power_relation_europe", nullable = true, length = 255)
    public String getBig_power_relation_europe() {
        return big_power_relation_europe;
    }

    public void setBig_power_relation_europe(String big_power_relation_europe) {
        this.big_power_relation_europe = big_power_relation_europe;
    }

    @Basic
    @Column(name = "big_power_relation_africa", nullable = true, length = 255)
    public String getBig_power_relation_africa() {
        return big_power_relation_africa;
    }

    public void setBig_power_relation_africa(String big_power_relation_africa) {
        this.big_power_relation_africa = big_power_relation_africa;
    }

    @Basic
    @Column(name = "big_power_relation_oceania", nullable = true, length = 255)
    public String getBig_power_relation_oceania() {
        return big_power_relation_oceania;
    }

    public void setBig_power_relation_oceania(String big_power_relation_oceania) {
        this.big_power_relation_oceania = big_power_relation_oceania;
    }

    @Basic
    @Column(name = "big_power_relation_america", nullable = true, length = 255)
    public String getBig_power_relation_america() {
        return big_power_relation_america;
    }

    public void setBig_power_relation_america(String big_power_relation_america) {
        this.big_power_relation_america = big_power_relation_america;
    }

    @Basic
    @Column(name = "big_power_relation_china", nullable = true, length = 255)
    public String getBig_power_relation_china() {
        return big_power_relation_china;
    }

    public void setBig_power_relation_china(String big_power_relation_china) {
        this.big_power_relation_china = big_power_relation_china;
    }

    public String getRelation_international_organization() {
        return relation_international_organization;
    }

    public void setRelation_international_organization(String relation_international_organization) {
        this.relation_international_organization = relation_international_organization;
    }

    @Basic
    @Column(name = "international_agreement", nullable = true, length = 255)
    public String getInternational_agreement() {
        return international_agreement;
    }

    public void setInternational_agreement(String international_agreement) {
        this.international_agreement = international_agreement;
    }

    @Basic
    @Column(name = "refrence", nullable = false, length = 255)
    public String getRefrence() {
        return refrence;
    }

    public void setRefrence(String refrence) {
        this.refrence = refrence;
    }

    @Basic
    @Column(name = "statistics", nullable = false, length = 255)
    public String getStatistics() {
        return statistics;
    }

    public void setStatistics(String statistics) {
        this.statistics = statistics;
    }

    @Basic
    @Column(name = "conferences", nullable = false, length = 255)
    public String getConferences() {
        return conferences;
    }

    public void setConferences(String conferences) {
        this.conferences = conferences;
    }

    @Basic
    @Column(name = "picture", nullable = true, length = 255)
    public String getPicture() {
        return picture;
    }

    public void setPicture(String picture) {
        this.picture = picture;
    }

    @Basic
    @Column(name = "recoder_id", nullable = false, length = 3)
    public String getRecoder_id() {
        return recoder_id;
    }

    public void setRecoder_id(String recoder_id) {
        this.recoder_id = recoder_id;
    }

    @Basic
    @Column(name = "recoder_time", nullable = false)
    public String getRecoder_time() {
        return recoder_time;
    }

    public void setRecoder_time(String recoder_time) {
        this.recoder_time = recoder_time;
    }

    @Basic
    @Column(name = "nation_z", nullable = false, length = 255)
    public String getNation_z() {
        return nation_z;
    }

    public void setNation_z(String nation_z) {
        this.nation_z = nation_z;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        VInternationalAndRelationship that = (VInternationalAndRelationship) o;

        if (id != that.id) return false;
        if (country_code != null ? !country_code.equals(that.country_code) : that.country_code != null) return false;
        if (diplomatic_cpolicy != null ? !diplomatic_cpolicy.equals(that.diplomatic_cpolicy) : that.diplomatic_cpolicy != null)
            return false;
        if (foreign_relation != null ? !foreign_relation.equals(that.foreign_relation) : that.foreign_relation != null)
            return false;
        if (big_power_relation_asia != null ? !big_power_relation_asia.equals(that.big_power_relation_asia) : that.big_power_relation_asia != null)
            return false;
        if (big_power_relation_europe != null ? !big_power_relation_europe.equals(that.big_power_relation_europe) : that.big_power_relation_europe != null)
            return false;
        if (big_power_relation_africa != null ? !big_power_relation_africa.equals(that.big_power_relation_africa) : that.big_power_relation_africa != null)
            return false;
        if (big_power_relation_oceania != null ? !big_power_relation_oceania.equals(that.big_power_relation_oceania) : that.big_power_relation_oceania != null)
            return false;
        if (big_power_relation_america != null ? !big_power_relation_america.equals(that.big_power_relation_america) : that.big_power_relation_america != null)
            return false;
        if (big_power_relation_china != null ? !big_power_relation_china.equals(that.big_power_relation_china) : that.big_power_relation_china != null)
            return false;
        if (relation_international_organization != null ? !relation_international_organization.equals(that.relation_international_organization) : that.relation_international_organization != null)
            return false;
        if (international_agreement != null ? !international_agreement.equals(that.international_agreement) : that.international_agreement != null)
            return false;
        if (refrence != null ? !refrence.equals(that.refrence) : that.refrence != null) return false;
        if (statistics != null ? !statistics.equals(that.statistics) : that.statistics != null) return false;
        if (conferences != null ? !conferences.equals(that.conferences) : that.conferences != null) return false;
        if (picture != null ? !picture.equals(that.picture) : that.picture != null) return false;
        if (recoder_id != null ? !recoder_id.equals(that.recoder_id) : that.recoder_id != null) return false;
        if (recoder_time != null ? !recoder_time.equals(that.recoder_time) : that.recoder_time != null) return false;
        if (nation_z != null ? !nation_z.equals(that.nation_z) : that.nation_z != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = id;
        result = 31 * result + (country_code != null ? country_code.hashCode() : 0);
        result = 31 * result + (diplomatic_cpolicy != null ? diplomatic_cpolicy.hashCode() : 0);
        result = 31 * result + (foreign_relation != null ? foreign_relation.hashCode() : 0);
        result = 31 * result + (big_power_relation_asia != null ? big_power_relation_asia.hashCode() : 0);
        result = 31 * result + (big_power_relation_europe != null ? big_power_relation_europe.hashCode() : 0);
        result = 31 * result + (big_power_relation_africa != null ? big_power_relation_africa.hashCode() : 0);
        result = 31 * result + (big_power_relation_oceania != null ? big_power_relation_oceania.hashCode() : 0);
        result = 31 * result + (big_power_relation_america != null ? big_power_relation_america.hashCode() : 0);
        result = 31 * result + (big_power_relation_china != null ? big_power_relation_china.hashCode() : 0);
        result = 31 * result + (relation_international_organization != null ? relation_international_organization.hashCode() : 0);
        result = 31 * result + (international_agreement != null ? international_agreement.hashCode() : 0);
        result = 31 * result + (refrence != null ? refrence.hashCode() : 0);
        result = 31 * result + (statistics != null ? statistics.hashCode() : 0);
        result = 31 * result + (conferences != null ? conferences.hashCode() : 0);
        result = 31 * result + (picture != null ? picture.hashCode() : 0);
        result = 31 * result + (recoder_id != null ? recoder_id.hashCode() : 0);
        result = 31 * result + (recoder_time != null ? recoder_time.hashCode() : 0);
        result = 31 * result + (nation_z != null ? nation_z.hashCode() : 0);
        return result;
    }
}
